<div bsModal #createOrEditModal="bs-modal" class="modal fade" tabindex="-1" role="dialog"
    aria-labelledby="createOrEditPartyaffairsDetailModal" aria-hidden="true" [config]="{ backdrop: 'static' }">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <form *ngIf="active" #editForm="ngForm" novalidate (ngSubmit)="save()" autocomplete="off">
                <div class="modal-header">
                    <h4 class="modal-title">
                        <span *ngIf="editDto.id">编辑耗材成本</span>
                        <span *ngIf="!editDto.id">新增耗材成本</span>
                    </h4>
                    <button type="button" class="close" (click)="close()" [attr.aria-label]="l('Close')">
                        <span aria-hidden="true">&times;</span>
                    </button>
                </div>
                <div class="modal-body">
                    <tabset class="tab-container tabbable-line">
                        <tab heading="设备耗材信息" customClass="m-tabs__item">
                            <div class="form-group" *ngIf="!editDto.id">>
                                <label>设备信息*</label>
                                <p-dropdown [options]="deviceNumberList" [(ngModel)]="deviceId" filter="true"
                                    [style]="{ width: '750px' }" [ngModelOptions]="{ standalone: true }"
                                    placeholder="选择设备">


                                </p-dropdown>



                            </div>
                            <div class="form-group" *ngIf="editDto.id">
                                <label>设备信息*</label>
                                <p-dropdown [options]="deviceNumberList" [(ngModel)]="deviceId" filter="true"
                                    [style]="{ width: '750px' }" [ngModelOptions]="{ standalone: true }"
                                    [readonly]='true'>


                                </p-dropdown>



                            </div>

                            <div class="form-group">
                                <label>耗材成本*</label>
                                <input id="cost" #roleNameInput="ngModel" class="form-control" type="text" name="cost"
                                    [(ngModel)]="editDto.cost" required maxlength="64" />
                            </div>
                        </tab>
                    </tabset>

                    <div class="modal-footer">
                        <button [disabled]="saving" type="button" class="btn btn-default" (click)="close()">
                            {{ l("Cancel") }}
                        </button>
                        <button type="submit" class="btn btn-primary blue" [disabled]="!editForm.form.valid"
                            [buttonBusy]="saving" [busyText]="l('SavingWithThreeDot')">
                            <i class="fa fa-save"></i>
                            <span>{{ l("Save") }}</span>
                        </button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
